import Layout from '@/layouts';

export default [
  {
    path: '/kjxm',
    component: Layout,
    redirect: '/kjxm/home',
    meta: {
      title: '科技项目',
      isOrNot: true,
    },
    children: [
      {
        path: 'home',
        component: () => import('@/pages/kjxm/home.vue'),
        meta: { title: '首页', icon: 'view-module' },
      },
      {
        path: 'tzgg',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kjxm/tzgg/guide',
        meta: { title: '通知公告', icon: 'view-module' },
        children: [
          {
            path: 'guide',
            component: () => import('@/pages/kjxm/tzgg/guide.vue'),
            meta: { title: '年度指南' },
          },
          {
            path: 'plan',
            component: () => import('@/pages/kjxm/tzgg/plan.vue'),
            meta: { title: '年度计划' },
          },
          {
            path: 'unit-plan',
            component: () => import('@/pages/kjxm/tzgg/unit-plan.vue'),
            meta: { title: '单位计划' },
          },
        ]
      },
      {
        path: 'approve',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kjxm/approve/approve-my',
        meta: { title: '审批管理', icon: 'view-module' },
        children: [
          {
            path: 'approve-my',
            component: () => import('@/pages/kjxm/approve/approve-my.vue'),
            meta: { title: '待我审批记录' },
          },
          {
            path: 'approved-my',
            component: () => import('@/pages/kjxm/approve/approved-my.vue'),
            meta: { title: '我已审批记录' },
          },
          {
            path: 'approve-project',
            component: () => import('@/pages/kjxm/approve/approve-project.vue'),
            meta: { title: '形式审查项目列表' },
          },
          {
            path: 'approver-management',
            component: () => import('@/pages/kjxm/approve/approver-management.vue'),
            meta: { title: '形式审查人员' },
          },
        ]
      },
      {
        path: 'review',
        component: () => import('@/layouts/blank.vue'),
        redirect: 'kjxm/review/review-group-sys',
        meta: { title: '评审管理', icon: 'view-module' },
        children: [
          {
            path: 'review-standard',
            component: () => import('@/pages/kjxm/review/review-standard.vue'),
            meta: { title: '评审指标体系' },
          },
          {
            path: 'review-group',
            component: () => import('@/pages/kjxm/review/review-group.vue'),
            meta: { title: '评审分组体系' },
          },
        ]
      },
      {
        path: 'pm',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kjxm/pm/project-guide',
        meta: { title: '项目管理', icon: 'view-module' },
        children: [
          {
            path: 'project-map',
            component: () => import('@/pages/kjxm/pm/project-map.vue'),
            meta: { title: '项目地图' },
          },
          {
            path: 'project-index',
            name: 'kjxm-pm-project-index',
            component: () => import('@/pages/kjxm/pm/project-index.vue'),
            meta: { title: '项目列表', isAlive: true },
          },
          {
            path: 'project-my',
            component: () => import('@/pages/kjxm/pm/project-my.vue'),
            name: 'kjxm-pm-project-my',
            meta: { title: '我的项目', isAlive: true },
          },
          {
            path: 'project-jjt-index',
            name: 'kjxm-jttpm-project-index',
            component: () => import('@/pages/kjxm/jttpm/project-index.vue'),
            meta: { title: '项目列表(厅)', isAlive: true, hidden: import.meta.env.VITE_SITE_TAG === 'jtt' },
          },
          {
            path: 'project-jtt-my',
            component: () => import('@/pages/kjxm/jttpm/project-my.vue'),
            name: 'kjxm-jttpm-project-my',
            meta: { title: '我的项目(厅)', isAlive: true, hidden: import.meta.env.VITE_SITE_TAG === 'jtt' },
          },
        ]
      },
      {
        path: 'apply',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kjxm/apply/project-index',
        meta: { title: '申报管理', icon: 'view-module' },
        children: [
          {
            path: 'project-index',
            component: () => import('@/pages/kjxm/apply/project-index.vue'),
            name: 'kjxm-apply-project-index',
            meta: { title: '申报列表', isAlive: true },
          },
          {
            path: 'project-my',
            component: () => import('@/pages/kjxm/apply/project-my.vue'),
            name: 'kjxm-apply-project-my',
            meta: { title: '我的申报', isAlive: true },
          },
        ]
      },
      {
        path: 'zjms',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kjxm/zjms/project-index',
        meta: { title: '专家盲审管理', icon: 'view-module' },
        children: [
          {
            path: 'project-index',
            component: () => import('@/pages/kjxm/zjms/project-index.vue'),
            name: 'kjxm-zjms-project-index',
            meta: { title: '项目列表', isAlive: true },
          },
        ]
      },
      {
        path: 'outline',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kjxm/outline/project-index',
        meta: { title: '大纲管理', icon: 'view-module' },
        children: [
          {
            path: 'project-index',
            component: () => import('@/pages/kjxm/outline/project-index.vue'),
            name: 'kjxm-outline-project-index',
            meta: { title: '大纲列表', isAlive: true },
          },
          {
            path: 'project-my',
            component: () => import('@/pages/kjxm/outline/project-my.vue'),
            name: 'kjxm-outline-project-my',
            meta: { title: '我的大纲', isAlive: true },
          },
        ]
      },
      {
        path: 'contract',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kjxm/contract/project-index',
        meta: { title: '任务书管理', icon: 'view-module' },
        children: [
          {
            path: 'project-index',
            component: () => import('@/pages/kjxm/contract/project-index.vue'),
            meta: { title: '任务书列表' },
          },
          {
            path: 'project-my',
            component: () => import('@/pages/kjxm/contract/project-my.vue'),
            meta: { title: '我的任务书' },
          },
        ]
      },
      {
        path: 'implement',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kjxm/implement/change-apply',
        meta: { title: '实施管理', icon: 'view-module' },
        children: [
          {
            path: 'change-apply',
            component: () => import('@/pages/blank.vue'),
            meta: { title: '变更申请' },
          },
          // {
          //   path: 'postpone-apply',
          //   component: () => import('@/pages/blank.vue'),
          //   meta: { title: '延期申请'},
          // },
          {
            path: 'execute-report',
            component: () => import('@/pages/blank.vue'),
            meta: { title: '执行情况报告' },
          },
          {
            path: 'inspection-index',
            component: () => import('@/pages/blank.vue'),
            meta: { title: '中期检查和评估' },
          },
          {
            path: 'project-termination',
            component: () => import('@/pages/blank.vue'),
            meta: { title: '项目终止' },
          },
          // {
          //   path: 'defend1',
          //   component: () => import('@/pages/blank.vue'),
          //   meta: { title: '进度跟踪'},
          // },
          // {
          //   path: 'defend2',
          //   component: () => import('@/pages/blank.vue'),
          //   meta: { title: '过程监督'},
          // },
          // {
          //   path: 'defend3',
          //   component: () => import('@/pages/blank.vue'),
          //   meta: { title: '变更申请'},
          // },
          // {
          //   path: 'defend4',
          //   component: () => import('@/pages/blank.vue'),
          //   meta: { title: '延期申请'},
          // },
          // {
          //   path: 'defend5',
          //   component: () => import('@/pages/blank.vue'),
          //   meta: { title: '项目终止'},
          // },
        ]
      },
      {
        path: 'acceptance',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kjxm/acceptance/project-index',
        meta: { title: '验收管理', icon: 'view-module' },
        children: [
          {
            path: 'project-index',
            component: () => import('@/pages/kjxm/acceptance/project-index.vue'),
            meta: { title: '在研列表' },
          },
          {
            path: 'project-accepted-index',
            component: () => import('@/pages/kjxm/acceptance/project-accepted-index.vue'),
            meta: { title: '已验收列表' },
          },
          {
            path: 'project-my',
            component: () => import('@/pages/kjxm/acceptance/project-my.vue'),
            meta: { title: '我的在研' },
          },
          {
            path: 'project-accepted-my',
            component: () => import('@/pages/kjxm/acceptance/project-accepted-my.vue'),
            meta: { title: '我的已验收' },
          },
          // {
          //   path: 'defend2',
          //   component: () => import('@/pages/blank.vue'),
          //   meta: { title: '验收评审'},
          // },
          // {
          //   path: 'defend3',
          //   component: () => import('@/pages/blank.vue'),
          //   meta: { title: '验收整改'},
          // },
          // {
          //   path: 'defend4',
          //   component: () => import('@/pages/blank.vue'),
          //   meta: { title: '验收报告'},
          // },
        ]
      },
      {
        path: 'achievement',
        component: () => import('@/layouts/blank.vue'),
        meta: { title: '成果录入管理', icon: 'view-module' },
        children: [
          {
            path: 'project-index',
            component: () => import('@/pages/kjxm/achievement/project-index.vue'),
            meta: { title: '项目列表' },
          },
          {
            path: 'project-my',
            component: () => import('@/pages/kjxm/achievement/project-my.vue'),
            meta: { title: '我的项目' },
          },
          {
            path: 'defend2',
            component: () => import('@/pages/blank.vue'),
            meta: { title: '成果共享' },
          },
          {
            path: 'defend3',
            component: () => import('@/pages/blank.vue'),
            meta: { title: '成果推广' },
          },
        ]
      },
      // {
      //   path: 'expenditure',
      //   component: () => import('@/layouts/blank.vue'),
      //   redirect: 'kjxm/expenditure/budgetDeclaration/list',
      //   meta: { title: '经费管理', icon: 'view-module'},
      //   children: [
      //     {
      //       path: 'budgetDeclaration/list',
      //       component: () => import('@/pages/kjxm/expenditure/budgetDeclaration/list.vue'),
      //       meta: { title: '预算申报列表', activeMenu: '/kjxm/expenditure/budgetDeclaration/list'},
      //     },
      //     {
      //       path: 'budgetDeclaration/list',
      //       component: () => import('@/pages/kjxm/review/review-group.vue'),
      //       meta: { title: '评审分组体系'},
      //     },
      //     {
      //       path: 'budgetDeclaration/list',
      //       component: () => import('@/pages/kjxm/review/review-group.vue'),
      //       meta: { title: '评审分组体系'},
      //     },
      //     {
      //       path: 'budgetDeclaration/list',
      //       component: () => import('@/pages/kjxm/review/review-group.vue'),
      //       meta: { title: '评审分组体系'},
      //     },
      //     {
      //       path: 'budgetDeclaration/list',
      //       component: () => import('@/pages/kjxm/review/review-group.vue'),
      //       meta: { title: '评审分组体系'},
      //     },
      //     {
      //       path: 'budgetDeclaration/list',
      //       component: () => import('@/pages/kjxm/review/review-group.vue'),
      //       meta: { title: '评审分组体系'},
      //     },
      //   ]
      // },
    ],

  },

];
